// 处理多次点击
function noMultipleClicks(methods) {
    let that = this;
	let show = false;
    
    if (that.noClick) {
        that.noClick= false;
        methods();
        setTimeout(function () {
            that.noClick= true;
        }, 1000)
    } else {
        console.log("请稍后点击")
		if(!show){
			show = true;
			uni.showToast({
				title: '请勿重复点击',
				duration: 1000,
				icon: 'none'
			})
		}
		setTimeout(()=>{
			show =  false;
		},1000)
    }
}

//导出
export default {
	noMultipleClicks,//禁止多次点击
}
